//
//  dataModel.m
//  QuickReadComic
//
//  Created by 苗钧豪 on 16/9/5.
//  Copyright © 2016年 苗钧豪. All rights reserved.
//

#import "dataModel.h"

@implementation dataModel
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"infos"]) {
        NSMutableArray<InfosModel *> *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            InfosModel *infos = [InfosModel modelWithDic:dic];
            [array addObject:infos];
        }
        _infos = array;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"infos" : [InfosModel class]};
}
@end
